Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Editing in an XPage dojo dialog box
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Not Applicable
Release: 8.5.1
Reproducible: Always

On the web, we are trying to have a document open up in a dojo dijit dialog box in edit mode. This was an easy enough task in read mode but it has proven to be more difficult in edit mode.

We can get the document to open in edit mode but none of the buttons do anything when clicked. We've even tried to put a simple client side alert and that doesn't fire.

We've searched in here and saw that others have had similar problems but their posts went unanswered. On the dojo support site we also saw references to focus issues that are supposed to be fixed in 1.5 - not sure if that is part of the problem or not.

Here is the code as it sits in a data column. We have a custom control that sits in a div and that opens just fine. Once again, the problem is that none of the buttons in this CC do anything when opened up in the dijit box.

dojo.require("dijit.Dialog");
dojo.require("dijit.form.Button");

dojo.addOnLoad(function(){


//first check if it's there so we don't create a duplicate
var dialog = dijit.byId('dialogId');
if (dialog) { dialog.destroyRecursive(); }


// create a "hidden" Dialog till calling show it
var dialog = new dijit.Dialog({
title:"Field Profile",
id: "dialogId",
refreshOnShow: true,
preventCache: true
});

dojo.connect(dijit.byId("btnDemiss"), "onClick", dialog, "show");

// this function creates the dialog box and moves its content inside the form tag.
var xdialog = dojo.byId("dialogId");
xdialog.parentNode.removeChild(xdialog);
var form = document.forms[0];
form.appendChild(xdialog);


dialog.startup();
var url = "xpFormFieldProfile.xsp" + "?documentId=" + "#{javascript:rowFieldProfile.getUniversalID()}" + "&action=openDocument";

dialog.attr("href", url);

// showe the dialog box
dialog.show();
});


Feedback number WEBB84PLPF created by ~Fritz Nonponeplopoopsi on 04/20/2010

Status: Open
Comments:

Editing in an XPage dojo dialog box... (~Fritz Nonponep... 20.Apr.10)
. . XPages dijit dialog (~Maria Xanjumib... 20.Apr.10)
. . . . re (~Fritz Nonponep... 20.Apr.10)
. . . . . . re:dialog (~Maria Xanjumib... 21.Apr.10)
. . . . . . . . Open an xpages to dijit.Dialog (~John Nimtumima... 23.Apr.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS